package com.donger.common.sequence;

import com.donger.common.sequence.builder.DbSeqBuilder;
import com.donger.common.sequence.builder.RedisSeqBuilder;
import com.donger.common.sequence.builder.SnowflakeSeqBuilder;
import com.donger.common.sequence.properties.SequenceDbProperties;
import com.donger.common.sequence.properties.SequenceRedisProperties;
import com.donger.common.sequence.properties.SequenceSnowflakeProperties;
import com.donger.common.sequence.range.impl.name.DateBizName;
import com.donger.common.sequence.range.impl.name.DefaultBizName;
import com.donger.common.sequence.sequence.Sequence;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @author aeizzz
 * @date 2019-05-26
 */
@Configuration
@ComponentScan("com.donger.common.sequence")
@ConditionalOnMissingBean(Sequence.class)
public class SequenceAutoConfiguration {
}